package com.example.booksshop.entity;

import lombok.Data;

/**
 * @author xuan 2021/9/14
 */
@Data
public class Book {
   public int id;
   public String bookname;
   public String author;
   public int cid;

   public Book(){}

   public Book(int id, String bookname, String author, int cid) {
      this.id = id;
      this.bookname = bookname;
      this.author = author;
      this.cid = cid;
   }

   public Book(String bookname, String author) {
      this.bookname = bookname;
      this.author = author;
   }

   public Book(int cid) {
      this.cid = cid;
   }
}
